package com.youyou.service;

import com.youyou.entity.Student;
import com.youyou.mappers.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    public List<Student> findallstudent() {
        System.out.println("这是dao"+studentMapper);
        List<Student> students=studentMapper.findallstudents();
        for (Student s:students) {
            System.out.println(s.getName());
        }
//        System.out.println(
//                studentMapper
//        );
        return null;
    }
}
